std::regex_constants::error_type
From Cppreference
| C++ Standard Library |
|---|
| Regular expressions library |
| Template:cpp/regex/sidebar content |
| Defined in header <regex>
| ||
| enum error_type {
error_collate = /*unspecified*/, | ||
The error_type is a type that describes errors that may occur during regular expression parsing.
[edit] Constants
^ Value ^ Effect(s) if set ^ |error_collate|expression contains an invalid collating element name| |error_ctype|expression contains an invalid character class name| |error_escape|expression contains an invalid escaped character or a trailing escape| |error_backref|expression contains an invalid back reference| |error_brack|expression contains mismatched square brackets ([ and ])| |error_paren|expression contains mismatched parentheses (( and ))| |error_brace|expression contains mismatched curly braces ({ and })| |error_badbrace|expression contains an invalid range in a {} expression| |error_range|expression contains an invalid character range (e.g. [b-a])| |error_space|there was not enough memory to convert the expression into a finite state machine| |error_badrepeat|one of *?+{ was not preceded by a valid regular expression| |error_complexity|the complexity of an attempted match exceeded a predefined level| |error_stack|there was not enough memory to perform a match|
[edit] Operators
Bitwise operators ~, &, and | are also defined for error_type.